define (require, exports, module) ->
  base_api = require 'mods/api/base_api'

  # 获取登录用户信息
  getUserSession: () ->
    url = "/user/session"
    return base_api.getRequest url

  # 获取用户风险等级信息
  getUserRiskInfo: (params) ->
    url = '/rest/qry/QueryRiskAssessment'
    return base_api.postRequestByParams url, params

  # 获取风险测评题目和选项
  getRiskQuestion: (params) ->
    url = '/rest/qry/QueryTestPaper'
    return base_api.postRequestByParams url, params

  # 提交风险测评
  doSubmitRisk: (params) ->
    url = '/rest/busi/RiskAssessment'
    return base_api.postRequestByParams url, params

  # 查询字典，获取风险测评投资期限和品种
  queryDict: (params) ->
    url = '/rest/busi/QueryDict'
    return base_api.postRequestByParams url, params  